package com.cf.serialize.common;

import com.cf.serialize.MessageConvertService;
import com.cf.serialize.MessageRegister;
import org.springframework.stereotype.Component;

/**
 * game-server-CommonMessageRegister
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/5/8 下午 03:27
 */
public class CommonMessageRegister implements MessageRegister {
    @Override
    public void register(MessageConvertService convertService) {
        convertService.registorMessageConvert(LoginResponse.type, LoginResponse.class);
        convertService.registorMessageConvert(RechargeResponse.type, RechargeResponse.class);
        convertService.registorMessageConvert(StartRequest.type, StartRequest.class);
    }
}
